package com.example.demo.service.Imp;

import com.example.demo.dao.MoneyLendingMapper;
import com.example.demo.model.MoneyLending;
import com.example.demo.service.MoneyLendingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class MoneyLendingImp implements MoneyLendingService {

    @Autowired
    private MoneyLendingMapper moneyLendingMapper;

    @Override
    public MoneyLending MoneyLendingKey(Integer mid){
        return moneyLendingMapper.MoneyLendingKey(mid);
    }
    @Override
    public List<MoneyLending> getEnterPrise(){
        System.out.println("执行角色类型SQL语句");
        return moneyLendingMapper.getEnterPrise();
    }
    @Override
    public List<MoneyLending> getAllMon(){
        return moneyLendingMapper.getAllMon();
    }
    @Override
    public int delMoneyLending(Integer mid){
        return moneyLendingMapper.delMoneyLending(mid);
    }
    @Override
    public int insertMoneyLending(MoneyLending moneyLendingmodel){
        return moneyLendingMapper.insertMoneyLending(moneyLendingmodel);
    }
    @Override
    public int editMoneyLending(MoneyLending moneyLendingmodel){
        return moneyLendingMapper.editMoneyLending(moneyLendingmodel);
    }
}
